<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
    <style type="text/css">
        body {
            background: #dcdcdc;
        }
    </style>
    <title> Записная книжка </title>

</head>
<body>
<br/>
<center>

    <h1>Вход в базу телефонов</h1>
     ${error}
        <%--<form name='f'action=' ${pageContext.request.contextPath}/j_spring_security_check' method='post' >--%>
             <%--<form name='f' action=' <c:url value="j_spring_security_check" />' method='post' >--%>
        <form name='f' action=' /mobile/j_spring_security_check' method='POST' >
        <fieldset>
            <table cellspacing="0">
                <tr>
                    <th>Имя пользователя</th>
                    <td><input name="j_username" type="text"></td>
                </tr>
                <tr>
                    <th>пароль</th>
                    <td><input name="j_password" type="password"></td>
                    <%--<small><a href="/account/resend_password">Забыли?</a></small>--%>
                </tr>
                <%--<tr>--%>
                    <%--<th></th>--%>
                    <%--<td><input id="remember_me" name="_spring_security_remember_me" type="checkbox"></td>--%>
                <%--</tr>--%>
                <tr>
                    <th></th>
                    <td><input name="submit" type="submit" value="войти"></td>
                </tr>
            </table>
        </fieldset>
    </form>
    <script type="text/javascript">document.getElementById('username').focus();</script>
</center>


</body>
</html>
